<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Discount_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discount_price" data-rule="required" class="form-control" step="0.01" name="row[discount_price]" type="number" value="{$row.discount_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expire_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="expireTypeList" item="vo"}
                <label for="row[expire_type]-{$key|htmlentities}"><input id="row[expire_type]-{$key|htmlentities}" name="row[expire_type]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.expire_type"}checked{/in} /> {$vo|htmlentities}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group {if $row.expire_type == 2}hide{/if} expire_day">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expire_day')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expire_day" class="form-control" name="row[expire_day]" type="number" value="{$row.expire_day|htmlentities}">
        </div>
    </div>
    <div class="form-group {if $row.expire_type == 1}hide{/if} expire_start_time">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expire_start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expire_start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[expire_start_time]" type="text" value="{$row.expire_start_time|htmlentities|date="Y-m-d H:i:s",###}">
        </div>
    </div>
    <div class="form-group {if $row.expire_type == 1}hide{/if} expire_end_time">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expire_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expire_end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[expire_end_time]" type="text" value="{$row.expire_end_time|htmlentities|htmlentities|date="Y-m-d H:i:s",###}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" type="radio" value="{$key|htmlentities}" {in name="key" value="$row.status"}checked{/in} /> {$vo|htmlentities}</label>
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
